<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改用户页面</title>
</head>
<body>
<h3>修改用户</h3>
<hr/>
<form th:action="@{/user/add}" method="post">
    <input th:type="hidden" name="userId" th:value="${u.userId}">
    姓名：<input type="text" name="userName" th:value="${u.userName}"/><br/>
    密码：<input type="text" name="password" th:value="${u.password}"/><br/>
    描述: <input type="text" name="userDescription" th:value="${u.userDescription}">
    日期：<input type="date" name="inputDate"th:value="${#dates.format(u.inputDate,'yyyy-MM-dd')}"/><br/>
    角色：<input type="radio" name="roleId" value="1" th:checked="${u.roleId}==1"/>管理员
          <input type="radio" name="roleId" value="0" th:checked="${u.roleId}==0"/>普通用户<br/>
    角色：<input type="radio" name="userType" value="1" th:checked="${u.userType}==1"/>管理员
         <input type="radio" name="userType" value="0" th:checked="${u.userType}==0"/>普通用户<br/>

    <input type="submit" value="修改"/><br/>
</form>

</body>
</html>